package cn.com.playerlyric;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import cn.com.playerlyric.krc.KrcActivity;
import cn.com.playerlyric.lrc.LrcActivity;
import cn.com.playerlyric.lrc2.LrcActivity2;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Button lrcBtn = (Button) findViewById(R.id.lrcBtn);
        Button krcBtn = (Button) findViewById(R.id.krcBtn);

        lrcBtn.setOnClickListener(this);
        krcBtn.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.lrcBtn:
                Intent intent = new Intent(this, LrcActivity.class);
                startActivity(intent);
                break;
            case R.id.krcBtn:
                intent = new Intent(this, LrcActivity2.class);
                startActivity(intent);
                break;
        }
    }

}
